package org.feifei.pay.service;

import org.feifei.basic.exception.BusinessException;
import org.feifei.basic.service.BaseService;
import org.feifei.pay.domain.AlipayInfo;
import org.feifei.pay.domain.PayBill;
import org.feifei.pay.mapper.AlipayInfoMapper;
import org.feifei.pay.mapper.PayBillMapper;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * PayBill的Service接口
 */
public interface PayBillService extends BaseService<PayBill> {

    /**
     * 根据支付单的类型，调用支付宝接口，提交支付信息
     * @param payBillTemp
     * @return
     */
    public String payRequest(PayBill payBillTemp);

    /**
     * 根据唯一表示支付码 获取 支付单的信息
     * @param unionPaysn
     * @return
     */
    PayBill loadByUnionPaySn(String unionPaysn);

}
